<?php

namespace common\models;

use Yii;
use yii\behaviors\TimestampBehavior;

/**
 * This is the model class for table "{{%ceping_detail}}".
 *
 * @property string $userId
 * @property string $subjectId
 * @property integer $paperId
 * @property string $label
 * @property integer $weight
 * @property integer $status
 * @property string $created_at
 * @property string $updated_at
 * @property string $res1
 */
class CepingDetail extends \yii\db\ActiveRecord          //测评记录表
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%ceping_detail}}';
    }
    public function behaviors()
    {
        return [
            TimestampBehavior::className(),
        ];
    }
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['userId', 'subjectId'], 'required'],
            [['userId', 'paperId', 'weight', 'status'], 'integer'],
            [['subjectId'], 'string', 'max' => 40],
            [['times','label'], 'string', 'max' => 40],
            [['res1'], 'string', 'max' => 80]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'userId' => '用户id',
            'subjectId' => '所做题目序号rank',
            'paperId' => '试卷id',
            'times' => '每一次做试卷的唯一标识',
            'label' => '选择的标签',
            'weight' => 'Weight',
            'status' => 'Status',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
            'res1' => 'Res1',
        ];
    }
}
